#include"bsp_key.h"

unsigned char Key_Read(void)
{
    unsigned char Key_Value=0;
    switch(P3&0x3c)
    {
        case 0x38: Key_Value=1; break;
        case 0x34: Key_Value=2; break;
        case 0x2c: Key_Value=3; break;
        case 0x1c: Key_Value=4; break;
        default: Key_Value=0;
    }
    return Key_Value;
}